HTMLify
style.css
Views: 18 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #888; overflow: hidden; } .parent { height: 100vh; width: 100vw; display: flex; flex-direction: column; transform: rotate(-30deg) scale(2.5); } .orange, .white, .green { height: 33.33%; width: 100%; transition: all 2s; } .orange { background: #ff9933; } .white { background: white; display: flex; align-items: center; justify-content: center; } .green { background: #138808; } .white img { width: 10%; animation: rotate 3s infinite linear; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } |